You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a job that runs find-flaky (30x) when someone edits (--threshold: 10%), or adds a new E2E test.
Hopefully this will stop flaky tests from entering our codebase
Checklist before requesting a code review
I have performed a self-review of my code
I have addressed all Copilot comments
The changes do not touch the UI/UX
Adding tests is irrelevant for this PR
I have made sure that all automated checks pass before requesting a review
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical workflow and validation-fixture issues prevent reliable flaky-test detection.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds PR-based flaky-test detection for changed or new Portal E2E specs.
Changes:
Adds changed-spec selection tooling and an npm command.
Integrates candidate detection and repeated flaky-test runs into CI.
Adds temporary stable and flaky validation specs.
File summaries
File
Description
tools/select-changed-e2e-tests.mjs
Selects qualifying changed E2E specs.
tools/package.json
Registers the selector command.
e2e/portal/tests/TestingCi/PurposlyStable.spec.ts
Adds stable CI validation coverage.
e2e/portal/tests/TestingCi/PurposelyFlaky.spec.ts
Adds temporary flaky-test validation.
.github/workflows/test_e2e_portal.yml
Runs candidate detection and flaky-test jobs.
Review details
Suppressed comments (1)
.github/workflows/test_e2e_portal.yml:92
This new job is gated by path-filter, but that filter does not include tools/select-changed-e2e-tests.mjs. After this PR, a future change to the selector alone will make the E2E workflow skip candidate detection, so regressions in this CI-critical script can merge without the workflow exercising them. Include the selector in the path-filter inputs.
Most source files end with a newline, and split('\n') then produces a trailing empty element. This makes the denominator one line too large, so a file changed by exactly the configured threshold can be incorrectly excluded (for example, 10 changed lines in a 100-line file is calculated as 10/101). Exclude the terminal split element while preserving genuine blank lines.
The reason will be displayed to describe this comment to others. Learn more.
I think we should be starting to add some linting to this tools-folder...
With adding more and more code, it should all "look alike" and be checked for recommended/best-practice issues etc... (like the MJS-code in the interfaces/portal/scripts-folder..)
And there are probably some more utility-like methods that can be shared around more broadly...
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AB#44653
Describe your changes
This adds a job that runs
find-flaky(30x) when someone edits (--threshold: 10%), or adds a new E2E test.Hopefully this will stop flaky tests from entering our codebase
Checklist before requesting a code review
Portal preview-deployment
This PR does not have any preview deployments yet.